package com.appbee.cm.client.regionunit.ui;

import javax.inject.Inject;

import com.appbee.cm.client.regionunit.presenter.RegionActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.SimplePanel;

public class StaticActivityPanel extends SimplePanel
{
	private final RegionActivity regionActivity;
	private final EventBus eventBus;

	@Inject
	public StaticActivityPanel(RegionActivity regionActivity, EventBus eventBus)
	{
		this.regionActivity = regionActivity;
		this.eventBus = eventBus;
	}

	public void start(String regionId)
	{
		regionActivity.setRegionId(regionId);
		regionActivity.start(this, eventBus);

	}
}
